﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="shopping_ordereditor.aspx.cs"
    Inherits="shopping_ordereditor" %>

<%@ Register Src="_controls/header.ascx" TagName="header" TagPrefix="uc1" %>
<%@ Register Src="_controls/footer.ascx" TagName="footer" TagPrefix="uc2" %>
<%@ Register Src="_controls/membership_left_nav.ascx" TagName="membership_left_nav"
    TagPrefix="uc3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="ctl00_Head1">
    <title>曼福旅游保险</title>
    <link rel="canonical" href="http://www.insureandgo.com" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="travel insurance, holiday insurance, annual travel insurance, ski insurance, backpackers insurance, annual, cheap, uk, insurance, insureandgo, InsureandGo," />
    <meta name="description" content="Buy cheap travel insurance from InsureandGo, the UK's largest direct travel insurer. Wide range of policies available. Prices from under &pound;6. Kids go free." />
    <meta name="robots" content="noodp" />
    <meta name="google-site-verification" content="_p3NAz7IjML6o1UMAukUDLvJ-q3yRO-14nTqkjd0dDI" />
    <meta name="WT.pi" content="index.html" />
    <link rel="shortcut icon" href="favicon.ico" />
    <link href="_common/styles/layout.css" rel="stylesheet" type="text/css" />
    <!--[if lte IE 7]>
        <link rel="stylesheet" type="text/css" href="_common/styles/lteie7.css" />
    <![endif]-->
    <!-- jquery style sheets -->
    <!-- jquery libraries -->
    <script src="_common/scripts/jquery/jquery-1.6.2.js" type="text/javascript"></script>
    <script src="_common/scripts/jquery/UI/jquery.ui.core.js" type="text/javascript"></script>
    <script src="_common/scripts/jquery/UI/jquery.ui.widget.js" type="text/javascript"></script>
    <script type="text/javascript" src="_common/scripts/utility.js"></script>
    <script src="_common/scripts/ifeng_marquee.js" type="text/javascript"></script>
    <link rel="stylesheet" href="_common/styles/styles.css" type="text/css" />
    <link href="_common/styles/style-compressed.css" rel="stylesheet" type="text/css" />
    <link href="_common/styles/product_items.css" rel="stylesheet" type="text/css" />
    <link href="_common/styles/shopping_order_layout.css" rel="stylesheet" type="text/css" />
    <link href="_common/styles/form_layout.css" rel="stylesheet" type="text/css" />
    <!-- ANALYTICS END -->
    <script type="text/javascript" src="_common/scripts/jquery_regform_validator.js"></script> 
    <script language="javascript" src="_common/scripts/jquery_json.js" type="text/javascript"></script>

    <script language="javascript" src="_common/scripts/jquery_stringutil.js" type="text/javascript"></script>

    <script language="javascript" src="_common/scripts/interface.js" type="text/javascript"></script>
     
    <script src="_common/scripts/Util.js" type="text/javascript"></script>
    <script src="_common/scripts/jq_shopping_utility.js" type="text/javascript"></script>
    <script src="_common/scripts/jq_order_utility.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            validator.setup("#form1");
            /// 加载地址簿列表
            LoadAddressNameList();
            /// 获取当前送货地址信息
            GetAddressContentInfo();
            LoadingOrderItems("tbdCardItems", $("#txtOrderId").val());
        })
        function ValidatorSumbit() {
            var bl = false;
            var alertMsg = "";
            if (Trim($("#txtShippingAddressId").val()) == "") {
                alertMsg = "请填写送货地址！\r\n";
                AddShippingAddress();
                bl = false;
            }

            if (alertMsg != "") {
                alert(alertMsg);
                return false;
            }
            else
                return true;
        }
    </script>
</head>
<body>
    <script type="text/javascript">
    <!--
        function ___doPostBack(eventTarget) {
            $("#___EVENTTARGET").val(eventTarget);
            $("#form1").submit();
        }
    // -->
    </script>
    <div id="success" style="position: absolute; z-index: 300; height: 93px; width: 273px;
        left: 54%; top: 87%; margin-left: -150px; margin-top: -80px; background: #F8F8F8;">
        <div style="position: absolute; z-index: 300; width: 270px; height: 90px; background-color: #FFF7D3;
            border: solid #E60113 1px; font-size: 14px;">
            <div style="height: 64px; line-height: 150%; padding: 0px 3px 0px 3px;" align="center">
                <br />
                <table>
                    <tr>
                        <td valign="top">
                            <img border="0" src="_imgs/progress.gif" />
                        </td>
                        <td valign="middle" style="font-size: 14px; width: 150px;">
                            操作执行中 ...<br />
                        </td>
                    </tr>
                </table>
                <br />
            </div>
        </div>
        <div style="position: absolute; width: 270px; height: 108px; z-index: 299; left: 4px;
            top: 5px; background-color: #E8E8E8; border: #E8E8E8 1px solid; display: none;">
        </div>
    </div>
    <script type="text/javascript">
        $("#success").css("display", "none"); 
    </script>
    <script src="_common/scripts/divcover.js" type="text/javascript"></script>
    <form id="form1" runat="server">
    <input type="hidden" name="___EVENTTARGET" id="___EVENTTARGET" value="" />
    <input id="txtProvinceId" type="hidden" name="txtProvinceId" />
    <input id="txtCityId" type="hidden" name="txtCityId" />
    <input id="txtCountieId" type="hidden" name="txtCountieId" />
    <input id="txtOrderId" type="hidden" runat="server" name="txtOrderId" />
    <input id="txtOrderNumber" type="hidden" runat="server" name="txtOrderNumber" />
    <input id="txtShippingAddressId" type="hidden" runat="server" name="txtShippingAddressId" />
    <div class="cc-cookies">
    </div>
    <uc1:header ID="header1" runat="server" />
    <div class="clear">
    </div>
    <div id="main">
        <div id="secondary" class="widget-area">
            <uc3:membership_left_nav ID="membership_left_nav1" runat="server" />
        </div>
        <div class="rightContent">
            <div class="crumb">
                <a href="###">首页 </a><span>&gt; </span><em>兑换记录</em>
            </div>
            <div class="clear">
            </div>
            <div class="innercontent" id="mainOrderContent">
                <div class="orderReview" id="orderStatus">
                    <ul class="shipment">
                        <li>
                            <label class="status">
                                订单状态：<%=OrderStatus %></label></li>
                        <li>
                            <label>
                                配送方式：
                            </label>
                            快递</li>
                    </ul>
                    <ul class="payment">
                        <li class="pay">所需积分：<%=TotalPrice %></li>
                        <li class="charge" id="liCharge" runat="server"><a name="pay" class="button_c buttonC"
                            title="立即兑换" onclick="GoExchange('<%=OrderNumber %>');"><span>立即兑换</span></a></li>
                    </ul>
                </div>
                <div class="orderContent">
                    <label>
                        订单编号：</label><%=OrderNumber%><label>订购时间：</label><%=OrderDate%>
                    <label>
                        订单总额：</label><%=TotalPrice %>
                </div>
                <div class="checkoutBox" id="shippingAddressContentEditPanel" style="display: none;">
                    <div id="loading1" style="display: none; position: absolute; z-index: 300; width: 200px;
                        height: auto; background-color: #FFF7D3; border: solid #E60113 1px; font-size: 12px;
                        margin-left: 140px; margin-top: 50px;">
                        <table style="line-height: 45px; padding: 5px 3px 5px 3px;" align="center">
                            <tr>
                                <td valign="top">
                                    <img border="0" src="_imgs/progress.gif" />
                                </td>
                                <td valign="middle">
                                    &nbsp;操作执行中 ...<br />
                                </td>
                            </tr>
                        </table>
                    </div>
                    <h4 class="title1">
                        我的收货地址<span id="addressEdit" class="edit"><a title="取消修改" name="ShippingAddressTitle"
                            href="javascript:void(0);" onclick="ShippingAddressCancel(this);">[取消修改]</a></span></h4>
                    <ul class="infoList edit" id="shippingAddressEditContentInfo">
                        <li id="firstLine">
                            <label>
                                收货人地址：</label>
                            <select id="selShippingAddressList" name="selShippingAddressList">
                            </select>
                            <a class="newAdd" title="新增收货人信息" href="javascript:AddShippingAddress()">新增收货人信息</a>
                        </li>
                        <li>
                            <label for="txtShipToName">
                                地址类型：</label>
                            <input name="txtShipAddressName" type="text" id="txtShipAddressName" validatormsg="spanShipAddressName"
                                value="我的地址1" required="required" controlname="地址类型" isvalidator />
                            <span class="alertPanel" id="spanShipAddressName"></span></li>
                        <li>
                            <label for="txtShipToName">
                                收货联系人：</label>
                            <input name="txtShipToName" type="text" id="txtShipToName" validatormsg="spanShipToName"
                                required="required" controlname="收货联系人" isvalidator />
                            <span class="alertPanel" id="spanShipToName"></span></li>
                        <li>
                            <label for="txtMobile">
                                手&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;机：</label>
                            <input name="txtShipMobile" type="text" id="txtShipMobile" />
                            <em></em></li>
                        <li>
                            <label for="txtShipTel">
                                联系电话：</label>
                            <input name="txtShipTel" type="text" id="txtShipTel" required="required" controlname="联系电话"
                                isvalidator validatormsg="spanShipTel" />
                            <span class="alertPanel" id="spanShipTel"></span></li>
                        <li>
                            <label for="selProvinceList">
                                地&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;区：</label>
                            <select id="selProvinceList" name="selProvinceList" runat="server" />
                            </select>
                            <select id="selCityList" name="selCityList">
                                <option value="">-- 选择城市 --</option>
                            </select>
                            <select id="selCountiesList" name="selCountiesList" required="required" controlname="地区"
                                isvalidator validatormsg="spanCountiesList">
                                <option value="">-- 选择区县 --</option>
                            </select>
                            <span class="alertPanel" id="spanCountiesList"></span></li>
                        <li>
                            <label for="txtShipAddress">
                                联系地址：</label>
                            <input name="txtShipAddress" type="text" id="txtShipAddress" class="longInput" required="required"
                                controlname="联系地址" isvalidator validatormsg="spanShipAddress" />
                            <span class="alertPanel" id="spanShipAddress"></span></li>
                        <li>
                            <label for="txtShipZip">
                                邮&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;编：</label>
                            <input name="txtShipZip" type="text" id="txtShipZip" />
                        </li>
                        <li>
                            <div id="btnAddShippingInfo" style="display: none;">
                                <a class="button buttonA withMarginLeft" style="margin-left: 300px;" title="保存收货人信息" href="javascript:if(validator.validatorAll()){this.disabled=true;ShippingAddressSave('addshippingaddress');}">
                                    <span><span class="buttonOK">保存收货人信息</span></span></a></div>
                            <div id="btnEditShippingInfo">
                                <a class="button buttonA withMarginLeft" style="margin-left: 300px;" title="保存收货人信息" href="javascript:if(validator.validatorAll()){this.disabled=true;ShippingAddressSave('modifyshippingaddress');}">
                                    <span><span class="buttonOK">保存收货人信息</span></span></a></div>
                        </li>
                    </ul>
                </div>
                <div id="shippingAddressContentInfo" class="checkoutBox">
                    <h4 class="title1">
                        我的收货地址： <span class="edit"><a title="修改收货人信息" name="ShippingAddressTitle" href="javascript:void(0)"
                            onclick="ShippingAddressEdit(this);">[修改]</a></span></h4>
                    <div class="clear">
                        &nbsp;</div>
                    <ul class="infoList">
                        <li>
                            <label>
                                收货联系人：</label>
                            <span id="spanShipToName_Info"></span>
                            <input name="hidShipToName" type="hidden" id="hidShipToName" /></li>
                        <li>
                            <label>
                                手&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;机：</label>
                            <span id="spanShipMobile_Info"></span>
                            <input name="hidShipMobile" type="hidden" id="hidShipMobile" />
                        </li>
                        <li>
                            <label>
                                联系电话：</label>
                            <span id="spanShipTel_Info"></span>
                            <input name="hidShipTel" type="hidden" id="hidShipTel" />
                        </li>
                        <li>
                            <label>
                                地&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;区：</label>
                            <span id="spanShipCounties_Info"></span>
                            <input name="hidShipCounties" type="hidden" id="hidShipCounties" />
                        </li>
                        <li>
                            <label>
                                邮&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;编：</label>
                            <span id="spanShipZip_Info"></span>
                            <input name="hidShipZip" type="hidden" id="hidShipZip" />
                        </li>
                        <li>
                            <label>
                                联系地址：</label>
                            <span id="spanShipAddress_Info"></span>
                            <input name="hidShipAddress" type="hidden" id="hidShipAddress" />
                        </li>
                    </ul>
                </div> 
                <div class="checkoutBox noBorder">
                    <h4 class="title1">
                        订单结算信息
                    </h4>
                    <table class="shopCart" id="shopCart">
                        <thead>
                            <tr>
                                <th scope="col">
                                    商品名称
                                </th> 
                                <th scope="col">
                                    数量
                                </th>
                                <th scope="col" style="width: 80px;">
                                    积分
                                </th>
                                <th scope="col" style="width: 100px;">
                                    小计
                                </th>
                                <th scope="col">
                                    操作
                                </th>
                            </tr>
                        </thead>
                        <tbody id="tbdCardItems">
                        </tbody>
                    </table>
                    <div class="finalPrice" id="finalPrice">
                        <div class="finalPriceLeft">
                        </div>
                        <div class="priceAreaRight">
                            <ul class="priceArea">
                                <li><span>合计金额：</span><em id="emTotalCost"></em>
                                <input type="hidden" id="txtTotalCost" name="txtTotalCost" runat="server" /></li></ul>
                        </div>
                    </div> 
                </div>
                <div class="checkoutBox noBorder">
                    <p style="width: 300px; height: 35px; margin: 10px auto; padding: 0px 0px 0px 0px;
                        clear: both;">
                        <a href="javascript:if(ValidatorSumbit()){this.disabled=true;$('#success').css('display','block');___doPostBack('submitorder');}"
                            title="确认修改" class="button buttonB"><span>确认修改</span></a> <a href="javascript:window.location.href='shopping_orderlist.aspx';"
                                title="取消修改" class="button buttonB"><span>取消修改</span></a></p>
                </div>
            </div>
        </div>
    </div>
    <div class="clear">
    </div>
    <uc2:footer ID="footer1" runat="server" />
    </form>
</body>
</html>
